package com.xxx.meter.ui.main.view;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.DatePickerDialog;

public class DatePickerView {

    public static DatePickerDialog showDataPicket(Activity activity, DatePickerDialog.OnDateSetListener onDateSetListener) {
        DatePickerDialog datePickerView = null;
        if (android.os.Build.VERSION.SDK_INT >= android.os.Build.VERSION_CODES.N) {
            datePickerView = new DatePickerDialog(activity, AlertDialog.THEME_HOLO_LIGHT);
            datePickerView.setOnDateSetListener(onDateSetListener);
        }
        return datePickerView;
    }
}
